package com.standardoperationapp.app;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.Intent;


import com.standardoperationapp.operationplan.AlarmService;

import java.util.ArrayList;


public class BaseApplication extends Application {
    public static Context appContext;
    public static ArrayList<Activity> allActivities = new ArrayList<Activity>();
    public static BaseApplication app;

    // 超时报警的intent对象
    public Intent alarmIntent;

    @Override
    public void onCreate() {
        super.onCreate();
//        MultiDex.install(this);
        appContext = getApplicationContext();
        app = this;
        //初始化 HBluetooth
//        HBluetooth.init(this);
//        HBluetooth.getInstance()
//                .setConnectTimeOut(10000);
        // 创建一个Intent，用于广播报警
        alarmIntent = new Intent(this, AlarmService.class);
        alarmIntent.setAction(AlarmService.ACTION_ALARM);

    }

    public static BaseApplication getApp(){
        return app;
    }

}
